<template>
  <view style="">
    <view style="text-align: center;padding:150rpx 0;background: #fff" v-if="status==1">
      <svg t="1763626304369" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
           p-id="5600" width="64" height="64">
        <path
            d="M512 981.333333C252.8 981.333333 42.666667 771.2 42.666667 512S252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333z m-50.432-326.101333L310.613333 504.32a32 32 0 0 0-45.226666 45.226667l174.72 174.762666a32.341333 32.341333 0 0 0 0.341333 0.341334l0.256 0.213333a32 32 0 0 0 50.048-6.144l337.450667-379.605333a32 32 0 1 0-47.872-42.496l-318.762667 358.613333z"
            fill="#0088ff" p-id="5601"></path>
      </svg>
      <view style="margin-top:30rpx;">留言发布成功</view>
      <view class="next uni-row" style="margin:120rpx 60rpx;margin-bottom:0;">
        <view style="flex:1;margin-right:10rpx;"><uv-button type="primary" text="上一步"  plain  @click="my" icon="account-fill" iconColor="#0088ff">去我的留言</uv-button></view>
        <view  style="flex:1;margin-left:10rpx;"><uv-button type="primary" text="下一步" @click="index" icon="home" iconColor="#fff">返回首页</uv-button></view>
      </view>
    </view>
  </view>
</template>

<script setup lang="ts">
import {onLoad} from '@dcloudio/uni-app'
import {
  ref,
  reactive,
  nextTick,
  onMounted,
  watch
} from 'vue'

const status = ref(0)


onLoad((data) => {
  status.value = data.status
})

const my = () => {
  uni.redirectTo({
    url: '/pages/user/mythread'
  })
}
const index = () => {
  uni.switchTab({
    url: '/pages/index/index'
  })
}
</script>


<style scoped lang="scss">
page,#app{
  background: #fff;
}
</style>
